gtk/gtkapplication.c: Don't Include unistd.h Unconditionally
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 26 Dec 2013 08:15:10 +0000 (16:15 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 26 Dec 2013 08:15:10 +0000 (16:15 +0800)
This header, which is not universally available, is accidently made to be
included unconditionally during the refactoring of gtkapplication.c,
so restore the #ifdef check.

gtk/gtkapplication.c

index 46540ab5eeb96cdef7dac1a6ecfad39027a73edb..ea5211b21111643efda2a7037f2964fbd33e1119 100644 (file)
 #include "gtkapplication.h"
 
 #include <stdlib.h>
+
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
+
 #include <string.h>
 
 #include "gtkapplicationprivate.h"